<?php

class Welcome extends Controller {

	function Welcome()
	{
		parent::Controller();	
	}
	
	function index()
	{
		$user_list = new User();
		//$user = $user_list->where('id', 1)->get();
		$users = $user_list->where('id', 1)->get();
		print $users->username;
		/*foreach($users as $usr)
		{
			foreach($usr->org->get()->all as $org)
				print $org->orgname;
		}*/
		/*$projects = $user_list->org->get()->all;
		foreach($projects as $prj)
		{
			print $prj->orgname;
		}*/
		$this->load->view('welcome_message');
	}
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */